package com.morningstar.config;

import com.morningstar.service.UserService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @className: SpringConfiguration
 * @description: Spring配置类，其中定义的Bean可注入到Sprig容器中
 * 当使用 @Import(配置类.class)这种方式导入时，将下面的@Configuration注解打开
 * @author: LiuZhenHe
 * @date: 2023/10/16 17:38
 **/
//@Configuration
public class SpringConfiguration {

    @Bean
    public UserService createUserService(){
        return new UserService();
    }
}
